package com.kee.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author kee
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_employee")
@ApiModel(value="Employee对象", description="")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "身份证号")
    private String id_card;

    @ApiModelProperty(value = "婚姻状况")
    private String wedlock;

    @ApiModelProperty(value = "民族")
    private Integer nation_id;

    @ApiModelProperty(value = "籍贯")
    private String nation_place;

    @ApiModelProperty(value = "政治面貌")
    private Integer politic_id;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机")
    private String phone;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "部门编号")
    private Integer department_id;

    @ApiModelProperty(value = "职称id")
    private Integer job_level_id;

    @ApiModelProperty(value = "职位id")
    private Integer pos_id;

    @ApiModelProperty(value = "聘用形式")
    private String engage_form;

    @ApiModelProperty(value = "最高学历")
    private String tiptop_degree;

    @ApiModelProperty(value = "所属专业")
    private String specialty;

    @ApiModelProperty(value = "毕业院校")
    private String school;

    @ApiModelProperty(value = "入职日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDateTime begin_date;

    @ApiModelProperty(value = "在职状态")
    private String work_state;

    @ApiModelProperty(value = "工号")
    private String work_id;

    @ApiModelProperty(value = "合同期限")
    private Double contract_term;

    @ApiModelProperty(value = "转正日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDateTime conversion_time;

    @ApiModelProperty(value = "离职日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDateTime not_work_tract;

    @ApiModelProperty(value = "合同起始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDateTime begin_contract;

    @ApiModelProperty(value = "合同终止日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDateTime end_contract;

    @ApiModelProperty(value = "工龄")
    private Integer work_age;

    @ApiModelProperty(value = "工资账套id")
    private Integer salary_id;

    @ApiModelProperty(value = "民族")
    @TableField(exist = false)
    private Nation nation;

    @TableField(exist = false)
    @ApiModelProperty(value = "政治面貌")
    private PoliticsStatus politicsStatus;

    @TableField(exist = false)
    @ApiModelProperty(value = "职称名称")
    private JobLevel joblevel;

    @TableField(exist = false)
    @ApiModelProperty(value = "职位")
    private Position position;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门名称")
    private Department department;

}
